package com.qf.listener;

import com.qf.MqConsumerApplication;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.boot.SpringApplication;
import org.springframework.stereotype.Component;

/*
 *@Description:
 *@author:刘哥
 *@Date:86180 2022/10/9 20:21
 */
@Component
@RabbitListener(queues = "quene1")
public class QueneListener {
    /*
    接收处理方法
     */
    @RabbitHandler
    public void messageHandler(String msg) {
        System.out.println("=========="+msg);
    }
}
